/*
 * NoSuchMp3Exception.java
 * Copyright (C) 2007 by Ezequiel Turovetzky
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 3
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, see <http://www.gnu.org/licenses/>.
 */
package ar.com.botonera;

import java.io.File;

/**
 * Excepci&oacute;n arrojada al querer crear un objeto
 * <code>SoundButton</code> con un archivo <code>.mp3</code>
 * que no existe o al que no se tienen permisos de acceso.
 * @author <a href="mailto:tezequiel@gmail.com">Ezequiel Turovetzky</a>
 * @version 1.0
 */
public class NoSuchMp3Exception extends IllegalArgumentException {

    //~ Constructors -----------------------------------------------------------

    /**
     * Crea una nueva instancia de esta clase.
     */
    public NoSuchMp3Exception() {
        super();
    }
    
    /**
     * Crea una nueva instancia de esta clase.
     */
    public NoSuchMp3Exception(File mp3) {
        this("No existe el archivo " + (mp3 != null ? mp3.getAbsolutePath() : "null"));
    }    

    /**
     * Crea una nueva instancia de esta clase.
     * @param message El mensaje de la excepci&oacute;n.
     * @param cause La causa de la excepci&oacute;n.
     */
    public NoSuchMp3Exception(String message, Throwable cause) {
        super(message, cause);
    }

    /**
     * Crea una nueva instancia de esta clase.
     * @param message El mensaje de la excepci&oacute;n.
     */
    public NoSuchMp3Exception(String message) {
        super(message);
    }

    /**
     * Crea una nueva instancia de esta clase.
     * @param cause La causa de la excepci&oacute;n.
     */
    public NoSuchMp3Exception(Throwable cause) {
        super(cause);
    }
}